class AddCodeTypeToAcTypes < ActiveRecord::Migration
  def self.up
    add_column :ac_types, :code_type, :integer
    AcType.all.each{|ac| ac.update_attribute :code_type, 0}
  end

  def self.down
   remove_column :ac_types, :code_type
  end
end
